home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GameStar 2006 February
/
Gamestar_81_2006-02_dvd.iso
/
Red Shark
/
Common
/
CountryStorage.script
< prev
next >
Wrap
Text File
|
2001-12-21
|
1KB
|
47 lines
//-------------------------------------------------------------------
//
// This code is copyright 2001 by G5 Software.
// Any unauthorized usage, either in part or in whole of this code
// is strictly prohibited. Violators WILL be prosecuted to the
// maximum extent allowed by law.
//
//-------------------------------------------------------------------
class CCountryStorageMesh
{
string MeshFile = "Models/B_Country_Storage.mesh";
string SkinFile = "Models/B_Country_Storage.skin";
}
class CCountryStorageStateControl extends CUnitLifeControl
{
void CCountryStorageStateControl()
{
CUnitLifeControl(10000.0);
m_DestroyPause = 20.0;
m_ExplosionId = "EXPLID_BuildingExplosion";
}
}
// Building without ground control (for use in villages)
class CBaseCountryStorage extends CBuilding, CUnitWithStateControl
{
void CBaseCountryStorage()
{
InitializeModelAsStatic("CCountryStorageMesh");
CUnitWithStateControl("CCountryStorageStateControl");
}
}
// Single game object
class CMountedCountryStorage extends CBaseCountryStorage
{
void CMountedCountryStorage()
{
InitializeGroundControl();
}
}